package com.ruoyi.demo.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BasePlusEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 设备数据对象 report_device_data
 * 
 * @author shc
 * @date 2025-08-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "report_device_data")
public class ReportDeviceData extends BasePlusEntity {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** ID */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 设备类型ID */
    @Excel(name = "设备类型ID")
    private Long typeId;

    /** 设备ID */
    @Excel(name = "设备ID")
    private String guid;

    /** 数据批次号(毫秒) */
    @Excel(name = "数据批次号(毫秒)")
    private Long batchId;

    /** SN OR TASK_CODE */
    @Excel(name = "SN OR TASK_CODE")
    private String taskCode;

    /** 工序 */
    @Excel(name = "工序")
    private String station;

    /** 参数名 */
    @Excel(name = "参数名")
    private String label;

    /** key值 */
    @Excel(name = "key值")
    private String kw;

    /** value值 */
    @Excel(name = "value值")
    private String value;

    /** 设备数据类型 0: data 1: file */
    @Excel(name = "设备数据类型 0: data 1: file")
    private Integer valueType;

    /** 数据产生时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "数据产生时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date reportTime;

    /** 逻辑删除:  0:正常 1:已删除 */
    private Integer delFlag;

    /** 版本号 */
    @Excel(name = "版本号")
    private Integer version;

}
